import request from '@/utils/request'

// 查询管理账号列表
export function listManagementaccount(query) {
  return request({
    url: '/business/managementaccount/list',
    method: 'get',
    params: query
  })
}

// 查询管理账号详细
export function getManagementaccount(id) {
  return request({
    url: '/business/managementaccount/' + id,
    method: 'get'
  })
}

// 新增管理账号
export function addManagementaccount(data) {
  return request({
    url: '/business/managementaccount',
    method: 'post',
    data: data
  })
}

// 修改管理账号
export function updateManagementaccount(data) {
  return request({
    url: '/business/managementaccount',
    method: 'put',
    data: data
  })
}

// 删除管理账号
export function delManagementaccount(id) {
  return request({
    url: '/business/managementaccount/' + id,
    method: 'delete'
  })
}
